<?php


namespace App\Http\Controllers\Admin;
use App\Http\Controllers\BaseController;
use Illuminate\Http\Request;

class TestController extends BaseController
{

    public function notify(Request $request){
        \Log::info(var_export($request->input(), true));
    }

    public function index(Request $request) {
        $order = [
            'out_biz_no' => time(),
            'trans_amount' => '0.1',
            'product_code' => 'TRANS_ACCOUNT_NO_PWD',
            'biz_scene' => 'DIRECT_TRANSFER',
            'payee_info' => [
                'identity' => 'oqfpku9002@sandbox.com',
                'identity_type' => 'ALIPAY_LOGON_ID',
                'name' => '沙箱环境'
            ]
        ];

        $aa =  $this->payApp()->transfer($order);
        dd($aa);
        return $this->success($aa->getContent());
    }




}

